public class AssemblyLine implements IAssemblyLine {

	private LineStepBody lineStepBody;
	private LineStepChassis lineStepChassis;
	private LineStepMotor lineStepMotor;

	public AssemblyLine(){
		lineStepBody = new LineStepBody();
		lineStepChassis = new LineStepChassis();
		lineStepMotor = new LineStepMotor();
	}
	@Override
	public IProduct assembleProduct(IProduct product) {
		product.installFirstPart(lineStepBody.buildProductPart());
		product.installSecondPart(lineStepChassis.buildProductPart());
		product.installThridPart(lineStepMotor.buildProductPart());

	

		System.out.println("Собран продукт - " + product);
		return null;
	}
}
